//
//  Request.h
//  WorkUI-17
//
//  Created by lanou3g on 15/7/1.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol RequestDataDelegate <NSObject>

//声明协议方法
-(void)requestSucess:(NSData *)data;
-(void)requestError:(NSError *)error;

@end

@interface Request : NSObject

//声明一个函数封装通过网址请求数据
-(void)requestWithUrl:(NSString *)urlStr;
//声明一个代理
@property(nonatomic,assign)id<RequestDataDelegate>delegate;

@end
